import request from "@/utils/request";
const url = "/api/Login/";
import { userLoginType, userInfoFace,LoginInfoType } from "@/types/user";
export function login(data: userLoginType): Promise<IResponse<LoginInfoType>> {
  return request({
    url: url + "login",
    method: "post",
    data,
  });
}
export function info(): Promise<IResponse<userInfoFace>> {
  return request({
    url: url + "login",
    method: "post"
  });
}
